﻿using Batman.Maintenance.DTO.ActionBar;

namespace Batman.Maintenance
{
    public static class MaintenceActionBarExtension
    {
        /// <summary>
        /// 添加操作功能
        /// </summary>
        /// <param name="actionBar"></param>
        /// <param name="action"></param>
        /// <returns></returns>
        public static MaintenceActionBar HasAction(this MaintenceActionBar actionBar, MaintenceAction action)
        {
            actionBar.Actions.Add(action);
            return actionBar;
        }
    }
}
